﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace proba
{
    public partial class Pobjednicka : Form
    {
        private ToolStripLabel toolStripLabel3_bodovi;
        private TextBox Text_nick;
        public List<Nadimak> nick = new List<Nadimak>();

        public Pobjednicka()
        { InitializeComponent(); }

        public Pobjednicka(ToolStripLabel toolStripLabel3_bodovi, TextBox text_nick)
        {
            InitializeComponent();
            // TODO: Complete member initialization 
            this.toolStripLabel3_bodovi = toolStripLabel3_bodovi;
            label3_bodovi_pobj.Text = toolStripLabel3_bodovi.Text;
            Text_nick = text_nick;
            //label4_nick.Text = Text_nick.Text;
        }

        private void roundButton1_Click(object sender, EventArgs e)
        {
            Pocetna p = new Pocetna(); p.Show();
            this.Close();
        }

        private void roundButton2_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void roundButton3_Click(object sender, EventArgs e)
        {
            StreamWriter s = new StreamWriter("Highscores.txt", true);
            s.Write(Text_nick.Text + " " + toolStripLabel3_bodovi.Text + Environment.NewLine);
            s.Flush();
            s.Close();
            MessageBox.Show("Vaši bodovi su uneseni na highscore listu", "Potvrda unosa", MessageBoxButtons.OK);
        }

        private void roundButton4_Click(object sender, EventArgs e)
        {

        }


    }
}